home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / MPI_Address.z / MPI_Address
Encoding:
Text File  |  2002-10-03  |  2.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. MMMMPPPPIIII____AAAADDDDDDDDRRRREEEESSSSSSSS((((3333))))                                                  MMMMPPPPIIII____AAAADDDDDDDDRRRREEEESSSSSSSS((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MMMMPPPPIIII____AAAAddddddddrrrreeeessssssss - Gets the address of a location in memory
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      C:
  13.  
  14.           #include <mpi.h>
  15.  
  16.           int MPI_Address( _l_o_c_a_t_i_o_n, _a_d_d_r_e_s_s)
  17.           void     *_l_o_c_a_t_i_o_n;
  18.           MPI_Aint *_a_d_d_r_e_s_s;
  19.  
  20.  
  21.      C++:
  22.  
  23.           #include <mpi.h>
  24.  
  25.           Aint Get_address(
  26.           void*             _l_o_c_a_t_i_o_n)
  27.  
  28.  
  29.      Fortran:
  30.  
  31.           INCLUDE "mpif.h" (or USE MPI)
  32.  
  33.           <type> LOCATION(*)
  34.           INTEGER _a_d_d_r_e_s_s, _i_e_r_r_o_r
  35.  
  36.           CALL MPI_ADDRESS(_l_o_c_a_t_i_o_n, _a_d_d_r_e_s_s, _i_e_r_r_o_r)
  37.  
  38.  
  39. SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
  40.      This release implements the MPI 1.2 standard, as documented by the MPI
  41.      Forum in the spring 1997 release of _M_P_I:  _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
  42.      _S_t_a_n_d_a_r_d.
  43.  
  44. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  45.      The MMMMPPPPIIII____AAAAddddddddrrrreeeessssssss routine gets the address of a location in memory.  This
  46.      routine is provided for both Fortran and C programmers.  On many systems,
  47.      the address returned by this routine will be the same as produced by the
  48.      C &&&& operator, but this is not required in C and might not be true of
  49.      systems with word- rather than byte-oriented instructions or systems with
  50.      segmented address spaces.  This routine accepts the following parameters:
  51.  
  52.      _l_o_c_a_t_i_o_n  Specifies the location in caller memory (choice)
  53.  
  54.      _a_d_d_r_e_s_s   Returns the address of the location (integer)
  55.  
  56.      _i_e_r_r_o_r    Specifies the return code value for successful completion,
  57.                which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mmmmppppiiiiffff....hhhh
  58.                file.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.